import ggw_chuqin from './ggw_chuqin'
import ggw_router from './ggw_router'
import zm_routeConfig from './zm_routeConfig'


import nss_index from './nss_index'
import nss_routeconfig from './nss_routeconfig' 
export default [

   
    {
        path: '/index',
        component: () => import('@/views/index/index.vue'),
        children: [
            
            // 首页
            {
                path: '/index/shouye',
                component: () => import('../views/index/shouye/Index.vue')
            },
            // 家校互动
            {
                path: '/index/jiaxiaohudong',
                component: () => import('../views/index/jiaxiaohudong/Index.vue'),
                redirect: '/index/jiaxiaohudong/informList',
                children: ggw_chuqin
            },
            // 局校通知
            {
                path: '/index/juxiaotongzhi',
                component: () => import('../views/index/juxiaotongzhi/Index.vue'),
                children:    ggw_router
                
            },
            // 消息统计
            {
                path: '/index/xiaoxitongji',
                component: () => import('../views/index/xiaoxitongji/Index.vue'),
                children: nss_routeconfig,
            },
            // 用户通知
            {
                path: '/index/yonghutongzhi',
                component: () => import('../views/index/yonghutongzhi/Index.vue'),
                children:[
                        //用户概况
                    {
                        path: '/index/yonghutongzhi/gaikuang',
                        component: () =>import('../views/index/yonghutongzhi/yonghutongji/GaiKuang.vue')
                    },
                        //学生列表
                    {
                        path: '/index/yonghutongzhi/student',
                        component: () =>import('../views/index/yonghutongzhi/yonghutongji/Student.vue')
                    },
                        //新增学生列表
                    {
                        path: '/index/yonghutongzhi/studentadd',
                        component: () =>import('../views/index/yonghutongzhi/yonghutongji/StudentAdd.vue')
                    },
                        //老师列表
                    {
                        path: '/index/yonghutongzhi/teacher',
                        component: () =>import('../views/index/yonghutongzhi/yonghutongji/Teacher.vue')
                    },   
                        //新增老师列表
                    {
                        path: '/index/yonghutongzhi/teacheradd',
                        component: () =>import('../views/index/yonghutongzhi/yonghutongji/TeacherAdd.vue')
                    },
                        //家长列表
                    {
                        path: '/index/yonghutongzhi/parents',
                        component: () =>import('../views/index/yonghutongzhi/yonghutongji/Parents.vue')
                    },
                        //重定向
                    {
                        path: '/index/yonghutongzhi/',
                        redirect: '/index/yonghutongzhi/gaikuang'
                    },
                ]
            },
            // 学校管理
            {
                path: '/index/xuexiaoguanli',
                component: () => import('@/views/index/xuexiaoguanli/Index.vue'),
                children: zm_routeConfig
            },
            {
                path: '/index',
                redirect: '/index/shouye'
            },
            {
                path: '/index/:error(.*)',
                component: () => import('@/components/NotFound.vue')
            },
        ]
    },
    {
        path: '/login',
        component: () => import('../components/Login.vue')
    },
    {
        path: '/',
        redirect: '/index/shouye'
    },
    {
        path: '/:error(.*)',
        component: () => import('@/components/NotFound.vue')
    },

]